package com.clwl.supervise.superviseapp.entity.base;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName(value = "TS_DEPT")
public class TsDept implements Serializable {

    @TableId(value = "ID", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @TableField(value = "DELETE_FLAG")
    private Long deleteFlag;

    @TableField(value = "CREATE_ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createId;

    @TableField(value = "CREATE_TIME")
    private Date createTime;

    @TableField(value = "DEPT_CLASS")
    private String deptClass;

    @TableField(value = "DEPT_LEADER")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long deptLeader;

    /**
     * 部门类型 0、市局 1、市局各处室/各县区局 2、各区科室/监管所 3、委外部门
     */
    @TableField(value = "DEPT_TYPE")
    private String deptType;

    /**
     * 机构级别
     */
    @TableField(value = "LVL")
    private Long lvl;

    /**
     * 机构名称
     */
    @TableField(value = "NAME")
    private String name;
    /**
     * 部门简称
     */
    @TableField(value = "NICKNAME")
    private String nickname;
    /**
     * 备注
     */
    @TableField(value = "REMARK")
    private String remark;

    /**
     * 父级id
     */
    @TableField(value = "PARENT_ID")
    private Long parentId;

    /**
     * 机构编码
     */
    @TableField(value = "CODE")
    private String code;

    /**
     * 普众id
     */
    @TableField(value = "PZID")
    private String pzid;

    /**
     * 普众父id
     */
    @TableField(value = "PZPID")
    private String pzpid;

    private static final long serialVersionUID = 1L;
}
